Centos8 忘记Root密码如何操作

登录命令

1
docker login

输入用户名密码之后,出现Login Succeeded登录成功,也可根据提示去官网注册,用邮箱注册就可以

1
2
3
4
5
6
7
8
9
[root@localhost /]# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: wangjikai
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

将运行的容器打包成镜像,

1
docker commit -a "wangjikai" -m "oracle11g,数据库实例helowinXDB,用户sys,system,cim,test2,密码相同,暴露端口1521,数据库可建表空间路径/home/oracle/app/oracle/oradata/wjk/" 36b706be5766 wangjikai/oracle:11.2.0.1.0

注意:

-a 作者

-m 描述

36b706be5766 容器id

wangjikai/oracle 必须加自己在dockerhub 上的登录名/镜像名字

11.2.0.1.0 版本号

将镜像提交到dockerhub

1
docker push wangjikai/oracle:11.2.0.1.0

退出命令

1
docker logout
继开 wechat
欢迎加我的微信,共同交流技术